package job

import (
	"kubernate-server/service"

	"github.com/gin-gonic/gin"
)

type K8sJobRouter struct {
}

func (*K8sJobRouter) InitK8SJobRouter(r *gin.Engine) {
	group := r.Group("/jobs")
	group.GET("/:nameSpace/:jobName", service.ApiGroupApp.GetJobDetail)
	group.GET("/:nameSpace", service.ApiGroupApp.GetJobList)
	group.GET("/", service.ApiGroupApp.GetJobList)
	group.DELETE("/:nameSpace/:jobName", service.ApiGroupApp.DeleteJob)
	group.POST("/", service.ApiGroupApp.CreateJob)
}
